home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / aspipat.zip / SCSIERR.H < prev   
Text File  |  1992-01-26  |  3KB  |  69 lines

  1. #ident "$Id: scsierr.h,v 1.3 1992/01/12 15:24:44 chris Exp $"
  2.  
  3. /*
  4.  * $Log: scsierr.h,v $
  5.  * Revision 1.3  1992/01/12  15:24:44  chris
  6.  * Add the E$EndOfMediuom error macro
  7.  *
  8.  * Revision 1.2  1991/05/03  10:34:59  chris
  9.  * Add errorcodes for streamer support used by ada.c
  10.  *
  11.  * Revision 1.1  1991/03/21  11:11:16  chris
  12.  * Initial revision
  13.  *
  14.  */
  15.  
  16. /*
  17.  * This headerfile defines all the scsi/ada error codes
  18.  */
  19.  
  20. static char *scsi_err_id = "$Id: scsierr.h,v 1.3 1992/01/12 15:24:44 chris Exp $";
  21.  
  22. /* Error codes returned by the scsi functions */
  23.  
  24. #define E$NoErr 0           /* No Error */
  25. #define E$NoAspi -1         /* No Aspi Manager Installed */
  26. #define E$Busy -2           /* Aspi Module is busy (this should never occur */
  27. #define E$AspiErr -3        /* Undefined Aspi error */
  28. #define E$NoMem -4          /* Can't allocate memory */
  29. #define E$NoDevice -5       /* The device is not installed */
  30. #define E$AspiInval -6      /* Invalid ASPI request */
  31. #define E$NoAdapter -7      /* Invalid Host Adapter Number */
  32. #define E$Abort -8          /* ASPI request aborted by Host */
  33. #define E$SelTimeout -9     /* Selection Timeout */
  34. #define E$DataOverrun -10   /* Data over-run/under-run */
  35. #define E$BusFree -11       /* Unexpected Bus Free */
  36. #define E$BusFail -12       /* Target bus phase sequence failure */
  37. #define E$TargetBusy -13    /* The specified Target/LUN is busy */
  38. #define E$Reservation -14   /* Reservation conflict */
  39. #define E$NotReady -15      /* lun cannot be accessed */
  40. #define E$Medium -16        /* Medium Error */
  41. #define E$Hardware -17      /* Non recoverable hardware error */
  42. #define E$IllegalReq -18    /* Illegal Request */
  43. #define E$UnitAttention -19 /* Unit Attention */
  44. #define E$DataProtect -20   /* The Block is protected */
  45. #define E$BlankCheck -21    /* Encounterd non blank data */
  46. #define E$TargetAbort -22   /* The Target Aborted the command */
  47. #define E$VolOverflow -23   /* Volume overflow */
  48. #define E$Miscompare -24    /* Source and data did nor match */
  49. #define E$IOErr -25         /* An IO Error of unknown type */
  50.  
  51. /* Additional errorcodes used in ada.c */
  52. #define E$LockLMem -26      /* Can not lock local memory */
  53. #define E$LockGMem -27      /* Can not lock global memory */
  54. #define E$Fatal    -28      /* Fatal Error - unemploy the programmer :-) */
  55. #define E$NoChannel -29     /* The logical channel is not initialized */
  56. #define E$NotActive -30     /* The logical channel is not active */
  57. #define E$ChannelOverflow -31 /* Logical Channel overflow */
  58. #define E$StreamerInUse -32 /* streamer is already configured for a channel */
  59. #define E$BlockLimit -33    /* Illegal blocksize for a streamer */
  60. #define E$Offset -34        /* Illegal offset allowed for this operation */
  61. #define E$Position -35      /* Illegal position for this operarion */
  62. #define E$BlockLen -36      /* Illegal block length for this operation */
  63.  
  64. /*
  65.  * later added errorcodes for both modules ada.c & aspi.c
  66.  */
  67.  
  68. #define E$EndOfMedium -37   /* End of Medium detected, not really an error */
  69.